#include"../../include/chat_tool.h"
void chatroom_tool::send_all(int fd,string data)
{
    vector<int>user=gun_like.back_all_fd();
    if(user.size()==0)
    {
        return;
    }
    for(int i=0;i<user.size();i++)
    {
        send(user[i],data.c_str(),data.size(),0);
    }
}